<%--
    Document   : view fragment for post categories
    Created on : Mar 10, 2014, 10:54:45 PM
    Author     : Anton Strack
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<div>
    <c:if test="${postCategories != null && postCategories.size() > 0}">
        <p class="pull-left">Categories:<ul class="list-inline">
            <c:forEach items="${postCategories}" var="postCategory" >
                <li><a href="${req.contextPath}?action=view&resource=category&id=${postCategory.id}" title="${postCategory.description}">${postCategory.name}</a>

                    <a href="${req.contextPath}?action=remove&resource=category&id=${postCategory.id}&for=${bean.getDerivedValue('ResourceTypeName')}&sid=${bean.id}" title="Remove Category from post." class="delete clearfix">&times;</a></li>
            </c:forEach>
        </ul>
        </p>
    </c:if>
</div>

